fix codacy flagged %d in format string mismatch.
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 14 Oct 2021 12:36:25 +0000 (06:36 -0600)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 14 Oct 2021 12:36:25 +0000 (06:36 -0600)
%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

tpo.cc

diff --git a/tpo.cc b/tpo.cc
index 24be579431b2484fc6cbab11d68b099067a09e88..364277a28b45a4881d8fdffbc2cd4fb5a3460d7d 100644 (file)
--- a/tpo.cc
+++ b/tpo.cc
@@ -533,7 +533,7 @@ static void tpo_process_tracks()
     // byte for track style name length, then name itself
     tmp = gbfgetc(tpo_file_in);
     // wrong byte order?? tmp = tpo_read_int(); // 16 bit value
-    if(DEBUG > 1) { printf("Track style %d has %d-byte (0x%x) name\n", ii, tmp, tmp); }
+    if(DEBUG > 1) { printf("Track style %u has %d-byte (0x%x) name\n", ii, tmp, tmp); }
     if (tmp >= TRACKNAMELENGTH) {
       printf("ERROR! Found track style name over %d chars, skipping all tracks!\n",TRACKNAMELENGTH);
       return;